//
//  LBSepiaFilter.mm
//  OpenGLGame
//
//  Created by Nguyen Cong Huy on 11/19/12.
//  Copyright (c) 2012 UIT. All rights reserved.
//

#include <iostream>

#include "LBSepiaFilter.h"
#include "LBStruct.h"

LBSepiaFilter::LBSepiaFilter():LBImageColorMatrixFilter(){

    
    setIntensity(1.f);
    LBMatrix4x4 matrix = (LBMatrix4x4){
        {0.3588, 0.7044, 0.1368, 0.0},
        {0.2990, 0.5870, 0.1140, 0.0},
        {0.2392, 0.4696, 0.0912 ,0.0},
        {0,0,0,1.0},
    };

    setColorMatrix(matrix);
}

void LBSepiaFilter::setIntensity(float intensity){
    LBImageColorMatrixFilter::setIntensity(intensity);
}